<?php

class HelpAction extends BaseAction {

    public function index($id="2") {
        $help = M("help");
        $list = $help->where("")->select();
        foreach ($list as $key => $li) {
            $arr[$li['pid']][$li['Id']] = $li; //二级导航菜单
        }
        $this->assign("arr", $arr);
        $con = $help->where("Id = $id")->select();
        $this->assign("con", $con);
        
        $this->display();
    }

}

?>